﻿@using CleanArchitecture.Infrastructure.Models.Business.Columns;
@model ColumnItemModel
@{
    Layout = "_BackendLayout";
    ViewData["Title"] = ViewBag.PageTitle as string;
    int currentSystemModuleId = ViewBag.CurrentSystemModuleId;
}
@section csslinks{
    <link rel="stylesheet" href="/js/backend/modules/numberInput/numberInput.css" />
}
@section cssstyles {
    <style type="text/css">
        body {
            margin: 20px !important;
            display: flex;
            flex: auto;
            flex-direction: column;
            min-height: 0;
            background: #f0f2f5;
        }

        .backendcolumnmanage {
            width: 100% !important;
            height: 100%;
            background-color: #fff;
            margin: 0 !important;
            padding: 10px 2px;
        }
    </style>
}
<div class="backendcolumnmanage layui-main">
    <form class="layui-form">
        <fieldset class="layui-elem-field">
            <div class="layui-field-box pagebuttongroup">
                @await Component.InvokeAsync("PageButton")
            </div>
        </fieldset>

        <table id="columnmanagetable" lay-filter="columnmanagetable"></table>
    </form>
</div>
<input type="text" class="layui-hide" id="currentSystemModuleId" value="@currentSystemModuleId" />
<!-- 表格行排序设置-->
<script type="text/html" id="displayorderTpl">
    <span style="cursor: pointer; font-size: 16px;">{{d.displayorder}}</span>
</script>
<!-- 设置排序弹框-->
<script type="text/html" id="displayorderInputTpl">
    <div style="padding: 30px 50px;">
        <div class="layui-numbox" style="width: 180px;">
            <button class="layui-btn-numbox-minus" type="button">-</button>
            <input class="layui-input-numbox" type="number" value="0">
            <button class="layui-btn-numbox-plus" type="button">+</button>
        </div>
    </div>
</script>
@await Component.InvokeAsync("RecordButton")
@section scripts{
    <script src="~/js/backend/business/columnmanage.min.js" charset="utf-8" asp-append-version="true"></script>
}
